package com.ruoyi.back.v2.domain

import com.ruoyi.app.common.PageData
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty

@ApiModel("提现参数")
data class WithdrawRelationParam(

    @ApiModelProperty("提现金额")
    var money: Double? = null,

    @ApiModelProperty("1. 微信 2.支付宝")
    var withdrawType: Int? = null,
)

@ApiModel("客户端推广赚钱实体")
data class AppSpreadManagerVo(

    @ApiModelProperty("收益余额(元)")
    var employeeMoney: Double? = 0.0,

    @ApiModelProperty("已邀请(人)")
    var inviteUserNum: Int? = 0,

    @ApiModelProperty("已提现(元)")
    var withdrawMoney: Double? = 0.0,

    @ApiModelProperty("累计收益(元)")
    var totalEmployeeMoney: Double? = 0.0,

    @ApiModelProperty("推广收益")
    var appSpreadEmployeeVo: AppSpreadEmployeeVo? = null,
)

@ApiModel("客户端推广赚钱搜索参数")
data class AppSpreadEmployeeDto(

    @ApiModelProperty("1.一级 2.二级 不传为全部")
    var type: Int? = null
)

@ApiModel("客户端推广收益实体")
data class AppSpreadEmployeeVo(

    @ApiModelProperty("邀请人数")
    var inviteUserNum: Int? = 0,

    @ApiModelProperty("消费笔数")
    var consumeNum: Int? = 0,

    @ApiModelProperty("消费金额")
    var consumeMoney: Double? = 0.0,

    @ApiModelProperty("累计收益")
    var totalEmployee: Double? = 0.0,

    @ApiModelProperty("今日邀请")
    var todayInviteUserNum: Int? = 0,

    @ApiModelProperty("今日消费笔数")
    var todayConsumeNum: Int? = 0,

    @ApiModelProperty("今日消费金额")
    var todayConsumerNum: Double? = 0.0,

    @ApiModelProperty("今日累计收益")
    var todayTotalEmployee: Double? = 0.0
)


@ApiModel("客户端邀请用户实体")
data class AppInviteUserVo(

    @ApiModelProperty("用户昵称")
    var username: String? = null,

    @ApiModelProperty("用户id")
    var userId: String? = null,

    @ApiModelProperty("时间")
    var time: String? = null,

    @ApiModelProperty("上级昵称")
    var firstLevelUserName: String? = null,

    @ApiModelProperty("上级用户ID")
    var firstUserId: String? = null,
)


@ApiModel("客户端提现实体")
data class AppWithdrawVo(

    @ApiModelProperty("提现类型: 1. 微信 2.支付宝")
    var withdrawType: Int? = null,

    @ApiModelProperty("提现金额")
    var money: Double? = 0.0,

    @ApiModelProperty("审核状态 0待审核 1审核成功 2审核失败")
    var checkStatus: Int? = 0,

    @ApiModelProperty("失败原因")
    var errorMsg: String? = null,

    @ApiModelProperty("申请提现时间")
    var createTime: String? = null
)

@ApiModel("客户端已经提现数据")
data class AppWithdrawInfoVo(

    @ApiModelProperty("共计")
    var totalWithdrawMoney: Double? = 0.0,

    @ApiModelProperty("提现详情")
    var withdrawDetails: PageData<AppWithdrawVo>? = null
)

@ApiModel("客户端累计收益数据")
data class AppEmployeeInfoVo(

    @ApiModelProperty("共计")
    var totalEmployeeMoney: Double? = 0.0,

    @ApiModelProperty("累计收益详情")
    var employeeDetails: PageData<AppEmployeeVo>? = null,
)

@ApiModel("累计收益")
data class AppEmployeeVo(

    @ApiModelProperty("提供人等级 1: 1级 2: 2级")
    var employeeLevel: Int? = null,

    @ApiModelProperty("提供信息")
    var providerDesc: String? = null,

    @ApiModelProperty("收益金额")
    var employeeMoney: Double? = null,

    @ApiModelProperty("收益类型 1.加 2.减")
    var employeeType: Int? = 1,

    @ApiModelProperty("收益时间")
    var createTime: String? = null
)